package com.xiaoxi.dragsortlistview.demo5;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.xiaoxi.dragsortlistview.R;

/**
 * <一句话功能简述>
 * <功能详细描述>
 *
 * @author libenqi@pptv.com
 * @version [版本号, 2018/11/30]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class ListChoiceActivity extends AppCompatActivity
{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo5);
        findViewById(R.id.btn_demo5_dialog).setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {
                CancelOrderDialog orderDialog = CancelOrderDialog.newInstance();
                orderDialog.show(getFragmentManager(),"");
            }
        });
    }

    private void showDialog(Context cContext) {
        FragmentActivity activity = (FragmentActivity) cContext;
        CancelOrderDialog orderDialog = CancelOrderDialog.newInstance();
//        orderDialog.show(activity.getSupportFragmentManager(), "");

    }

}
